package model

const TableNameSpiderImage = "spider_image"
const PrimaryKeySpiderImage = "spider_image_id"

// SpiderImage 线报图片表
type SpiderImage struct {
	SpiderImageID int32  `gorm:"column:spider_image_id;primaryKey;autoIncrement:true" json:"spider_image_id"`
	SpiderID      int32  `gorm:"column:spider_id;not null;comment:线报ID" json:"spider_id"` // 线报ID
	URL           string `gorm:"column:url;comment:图片链接" json:"url"`                      // 图片链接
}

// TableName SpiderImage's table name
func (*SpiderImage) TableName() string {
	return TableNameSpiderImage
}

// PrimaryKey SpiderImage's primary key
func (*SpiderImage) PrimaryKey() string {
	return PrimaryKeySpider
}
